
const initValue = {
    token: '',
    refresh_token: ''
}

const login = (state = initValue, action) => {
    const { type, payload } = action
    switch (type) {
        case 'login/token':
            return { ...payload }
        case 'logout':
            return {}
        default:
            return state
    }
}

export default login;